-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt prio
0.15.0
#1916
Adopt prio
0.15.0
#1916
Conversation
@@ -20,7 +20,7 @@ hex = "0.4" | |||
num_enum = "0.7.0" | |||
# We can't pull prio in from the workspace because that would enable default features, and we do not | |||
# want prio/crypto-dependencies | |||
prio = { version = "0.14.1", features = ["multithreaded"] } | |||
prio = { version = "0.15.0", default-features = false, features = ["multithreaded"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes a bug I introduced in #1805: we should not enable default features on prio
in janus_messages
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have one suggestion in several places regarding the chunk length for Prio3SumVec. (This will mostly evaporate once we outsource the chunk length to whoever chooses task parameters)
core/src/task.rs
Outdated
2, | ||
*bits, | ||
*length, | ||
janus_core::task::VdafInstance::chunk_size(*length), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to compute this from the total encoded measurement length (since the validity circuit only cares about bits, not our vector of integers)
janus_core::task::VdafInstance::chunk_size(*length), | |
janus_core::task::VdafInstance::chunk_size(*bits * *length), |
2, | ||
*bits, | ||
*length, | ||
VdafInstance::chunk_size(*length), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
VdafInstance::chunk_size(*length), | |
VdafInstance::chunk_size(*bits * *length), |
2, | ||
*bits, | ||
*length, | ||
VdafInstance::chunk_size(*length), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VdafInstance::chunk_size(*length), | |
VdafInstance::chunk_size(*bits * *length), |
2, | ||
*bits, | ||
*length, | ||
VdafInstance::chunk_size(*length), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VdafInstance::chunk_size(*length), | |
VdafInstance::chunk_size(*bits * *length), |
let vdaf_client = Prio3::new_sum_vec_multithreaded(2, bits, length) | ||
.context("failed to construct Prio3SumVec VDAF")?; | ||
let vdaf_client = | ||
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(length)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(length)) | |
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(bits * length)) |
let vdaf = Prio3::new_sum_vec_multithreaded(2, bits, length) | ||
.context("failed to construct Prio3SumVec VDAF")?; | ||
let vdaf = | ||
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(length)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(length)) | |
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(bits * length)) |
let vdaf = Prio3::new_sum_vec_multithreaded(2, bits, length) | ||
.context("failed to construct Prio3SumVec VDAF")?; | ||
let vdaf = | ||
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(length)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(length)) | |
Prio3::new_sum_vec_multithreaded(2, bits, length, VdafInstance::chunk_size(bits * length)) |
tools/src/bin/collect.rs
Outdated
@@ -463,14 +467,15 @@ where | |||
.map_err(|err| Error::Anyhow(err.into())) | |||
} | |||
(VdafType::SumVec, Some(length), Some(bits)) => { | |||
let vdaf = | |||
Prio3::new_sum_vec(2, bits, length).map_err(|err| Error::Anyhow(err.into()))?; | |||
let vdaf = Prio3::new_sum_vec(2, bits, length, VdafInstance::chunk_size(length)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let vdaf = Prio3::new_sum_vec(2, bits, length, VdafInstance::chunk_size(length)) | |
let vdaf = Prio3::new_sum_vec(2, bits, length, VdafInstance::chunk_size(bits * length)) |
aggregator/src/aggregator.rs
Outdated
2, | ||
*bits, | ||
*length, | ||
VdafInstance::chunk_size(*length), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VdafInstance::chunk_size(*length), | |
VdafInstance::chunk_size(*bits * *length), |
ac8f5fb
to
4bbe28d
Compare
No description provided.